home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
callback.001
/
callback~
/
callback
/
lib
/
dbase
/
writestate.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-23
|
446b
|
23 lines
#include "dbase.p"
void writestate (int st, unsigned uid)
{
FILE
*fstate;
if (getmode() != mode_callback) /* no callback mode */
return;
fstate = xfopen(filename[the_statefile], "w");
fprintf(fstate, "%d %d", st, uid); /* write state/uid */
log(log_on, "statefile %s: write state %d for %s (uid: %d)",
filename[the_statefile],
st,
username(uid),
uid);
fclose (fstate); /* close state file */
}